package me.winds.wrapper.core.manager;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

@Deprecated
public class ImageManager {

    private static ImageManager instance;

    private ImageManager() {

    }

    public static ImageManager getDefault() {
        if (instance == null) {
            synchronized (ImageManager.class) {
                instance = new ImageManager();
            }
            return instance;
        }
        return instance;
    }


    /**
     * 加载指定URL的图片并设置到targetView
     *
     * @param context
     * @param url
     * @param targetView
     */
    public static void load(Context context, String url, final View targetView) {

    }


    public static void load(Context context, ImageView view, String url) {
        load(context, view, url, -1);
    }

    /**
     * 初始化占位图，加载指定URL的图片并设置到targetView
     *
     * @param context
     * @param view
     * @param url
     * @param placeholder
     */
    public static void load(Context context, ImageView view, String url, int placeholder) {
    }

    public static void load(Context context, ImageView view, String url, int placeholder, int error) {
    }


}
